import Vue from "vue";
import App from "./App.vue";
// import router from "./router";
import store from "./store";
// import loading from '@/plugins/loading'
import download from "@/plugins/download";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// import './assets/css/base.css';
// import './assets/css/app.scss';
// import './assets/css/ant-reset.css'
// import './assets/css/reset.css'
// import './assets/css/common.scss'
import moment from 'moment';
import dayjs from 'dayjs';
Vue.use(ElementUI);
// Vue.use(loading);
Vue.config.productionTip = false;
Vue.prototype.$vue = Vue;
Vue.prototype.$moment = moment;
Vue.prototype.$bus = new Vue();
Vue.prototype.dayjs=dayjs
// 下载文件
Vue.prototype.$download = download
// Vue.prototype.$themeColor = localStorage.getItem('systemTheme')
// 添加vue jsx的错误提示
Vue.config.errorHandler = (err, vm, info) => {
  console.group(`%cError in ${info}`, 'color:red;font-weight: bold;');
  console.info(err);
  console.dir({ err, vm });
  console.error(err);
  console.groupEnd();
};

new Vue({
  store,
  render: h => h(App)
}).$mount("#app");
